<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2022/3/21
  Time: 16:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<%-- 未登录状态下 个人页面和创作中心 中间部分的登录和注册按钮--%>


<script src="../bootstrap/js/jquery/jquery.min.js"></script>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>

<div class="panel hots" style="height: 100px;padding-left: 300px" >
    <button class="btn btn-lg btn-login" style="height: 50px;width: 100px;margin-right: 100px" data-toggle="modal" data-target="#mymodel">登录</button>
    <button class="btn btn-lg btn-register" style="height: 50px;width: 100px" data-toggle="modal" data-target="#mymodel">注册</button>
</div>

<script type="text/javascript">
    $(function () {
        $(".btn-login").click(function () {
            $("#myModalLabel").text("登录");
            $("#action").val("login");
            $("#btn-primary").text("登录");
        })
        $(".btn-register").click(function () {
            $("#myModalLabel").text("注册");
            $("#action").val("register");
            $("#btn-primary").text("注册");
        })
    })
</script>